#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

#if 0
int* twoSum(int* nums, int numsSize, int target, int* returnSize) {
    for (int i = 0; i < numsSize; i++)
    {
        for (int j = i + 1; j < numsSize; j++)
        {

            if (nums[i] + nums[j] == target)
            {
                int* ret = malloc(sizeof(int) * 2);
                ret[0] = i; ret[1] = j;
                *returnSize = 2;
                return ret;
            }
        }
    }
    *returnSize = 0;
    return NULL;
}



bool isPalindrome(int x) {
    if (x < 0)
        return false;
    char arr[100];
    int i = 0;
    while (x > 0)
    {
        arr[i] = x % 10 + '0';
        x /= 10;
        i++;
    }
    int right = 0;
    int left = i - 1;
    while (right <= left)
    {
        if (arr[right] != arr[left])
            return false;
        right++;
        left--;
    }
    return true;
}
int main()
{
    isPalindrome(-121);
    return 0;
}
#endif
